package com.yangye.springclouddemosharding.mapper;

import com.yangye.springclouddemosharding.entity.Temperature;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangye
 * @date 2020/08/31
 */
@Mapper
public interface TemperatureMapper {

	Long insert(@Param("temp")Temperature temp);

	List<Temperature> selectPage(@Param("offset") long offset,@Param("size") long size);
}
